package com.hscy.push.controller.request;

import com.hscy.push.entity.ChatMessage;
import com.hscy.push.entity.PushMessage;
import com.hscy.push.service.PushService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @className: PushMessageContoller
 * @description: 测试消息推送
 * @author: xuteng
 * @date: 2023/12/30 23:25:11
 * @version: v1.0
 */
@RestController
@RequestMapping("/push")
public class PushMessageController {

    @Resource
    private PushService pushService;


    @GetMapping("/message")
    public String pushMessage() {
        pushService.pushUser("在干嘛", "1");
        System.out.println("发送成功");
        return "发送成功！";
    }
}
